﻿using System;
using System.Collections.Generic;

namespace HamcoWcs.Models.Charts
{
    public class ChartDto
    {
        public UseRateDto MemoryUseRate { get; set; }
        public UseRateDto DriveUseRate { get; set; }
        public ShelfChartDto ShelfData { get; set; }
    }

    public class BcrRate
    {
        public BcrRate()
        {

        }

        public BcrRate(string name, int rQty, int fQty)
        {
            BcrName = name;
            RQty = rQty;
            FQty = fQty;

            try
            {
                Rate = (1 - ((double)FQty / (double)RQty)).ToString("0.00%");
            }
            catch (Exception)
            {
                Rate = "-";
            }
        }

        public string BcrName { get; set; }
        public int RQty { get; set; }
        public int FQty { get; set; }


        public string Rate { get; set; }
    }

    public class DailyTaskQueryModel
    {
        public DateTime Date { get; set; }
    }

    public class TimeZoneQueryModel
    {
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
    }

    public class RangeTaskQueryModel
    {
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
    }
}
